package com.banana.springcloud.controller;

import com.banana.springcloud.service.StreamMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author layman
 * @date 2021/1/21
 */
@RestController
public class StreamMessageController {

    @Resource
    private StreamMessageProvider streamMessageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage(){
        return streamMessageProvider.sendMessage();
    }
}
